/** 
*@author Syrings 
*@version 2012 - 03 - 22 
*Modifications:move from event/Event.java
 Hold data single event
 It is a structure for single event only
 Actual Event defines at EventScnerio
It is an Entity Class
 Remove the methods which are never used
//********************************************/
package card;

public class EventCard extends Card{
	/** Modify by Ken 2012 -Mar - 4*/
	private String question; /** One question per String*/
	private String eventMC; /** Each answer holds one array slot*/
	private int[] score; /** store the marks for each answer*/
	private EventCard[] eventArr; /**Come from EventDatabase*/
	private int eventArrLength;
	
	public EventCard(){
		loadData();
	}
	
	public EventCard(int eventID, String question, String eventMC, int[] score) {
		this.cardId = eventID; /** ID for each event is unique*/
		this.name = "Event Card";
		this.question = question;
		this.eventMC = eventMC;
		this.score = score;
	}
	
	@Override
	public Card[] loadData() {
		eventArr = new EventCard[2];
		eventArrLength = eventArr.length;

		/** create the 1st event. Note the 1st event ID is zero!!!*/
		int iD1 = 0;
		String question1 = "Background: Children always go out with make-up, seem like having a relationship. \n" + 
		"However, mother is a traditional person.\n" +
		"She does not like her children falling in love with others when they are young.\n"  +
		"So, daddy, how can you solve this problem?\n";
		
		String mC1 = "Answer 1: Tell your children what you are suspecting face-to-face and try to understand the situation first. \n" +
		"Then you will speak out your feeling and analyze about the impact with your children, and give him/her some advices.\n\n" + 
		"Answer 2: Contact with the teacher of your children, \n" + 
		"and then kindly request him/her to contact with the parents of the involved student in order to solve the problem.";
		
		/** Score for each answer*/
		int[] q1ScoreArr = new int [2];
		q1ScoreArr[0] = 3;
		q1ScoreArr[1] = 2;
		
		eventArr[0] = new EventCard(iD1, question1, mC1, q1ScoreArr);
		
		
		/** Create the 2nd Event*/
		int iD2 = 1;
		String question2 = "Background: The examination is coming soon.\n" +
							"For the sake of your children, daddy does not allow him/her to go out before the exam so that he/she can focus on studying.\n" +
							"However, one of the friends of your children invites your children to attend his/her birthday party.\n" +
							"What will mother do to solve this problem?\n";
		
		String mC2 = "Answer 1: Allow your children to attend the birthday party.\n" +
					 "But you will schedule a timetable for your children after the party and restrict them to obey.\n\n" +
					 "Answer 2:Not allow your children to attend and force him/her to study at home everyday in order to get a good result.\n\n" +
					 "Answer 3: Promise your children to let him/her goes on that day.\n" +
					 "When the birthday party in coming,\n" +
					 "you will try to make an excuse and prohibit your children to attend.\n\n" +
					 "Answer 4:Restrict the attendant time of the birthday party.\n" +
					 "For example, you allow your children to attend the party from 1200pm to 0400pm.\n" +
					 "Thus, it won't affect too much on the coming examination.\n\n";
		
		int[] q2ScoreArr = new int [4];
		q2ScoreArr[0] = 3;
		q2ScoreArr[1] = -2;
		q2ScoreArr[2] = -3;
		q2ScoreArr[3] = -2;
		
		eventArr[1] = new EventCard(iD2, question2, mC2, q2ScoreArr);
		
		return eventArr;
	}
	
	public int getEventID(){
		return this.cardId;
	}
	
	public EventCard[] getEventArr() {
		return eventArr;
	}
	
	public int getEventArrLength() {
		return eventArrLength;
	}
	
	public String getEventMC() {
		return eventMC;
	}
	
	/*public void setEventMC(String eventMC) {
		this.eventMC = eventMC;
	}*/

	public int[] getScore() {
		return score;
	}
	
	public String getQuestion() {
		return question;
	}

}
